import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/AddJiuDian',
      name: 'AddJiuDian',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AddJiuDian.vue'),
    },

    {
      path: '/',
      name: 'ShowJiuDIian',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/ShowJiuDIian.vue'),
    },

    {
      path: '/UpdateShow/:id',
      name: 'UpdateShow',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/UpdateShow.vue'),
    },

    {
      path: '/textDemo',
      name: 'textDemo',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Demo/textDemo.vue'),
    },

  ],
})

export default router
